Overload | Description |
---|---|
TryAdd(TKey,TValue) | Adds an element with the provided key and value to the IDictionary. |
TryAdd(TKey,Converter<TKey,TValue>) | Adds an element with the provided key and value to the IDictionary by calling the provided factory method to construct the value if the key is not already present in the collection. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7